﻿using MongoDB.Driver;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;
using MongoDB.Driver.Builders;
using MongoDB.Bson;
using MongoDB.Driver.Linq;

namespace nMongo
{
    public partial class MongoEngine
    {        
        public IMongoQuery BuildIdentityQuery(object value)
        {
            return Query.EQ(this.Options.CollectionDefaultIdentityName, BsonValue.Create(value));
        }
    }
}
